import request from '@/utils/request'

// 查询催款订单信息列表
export function listOrder(query) {
  return request({
    url: '/business/tzCollectionOrder/list',
    method: 'get',
    params: query
  })
}

// 查询催款订单信息详细
export function getOrder(id) {
  return request({
    url: '/business/tzCollectionOrder/getDetail/' + id,
    method: 'get'
  })
}

// 新增催款订单信息
export function addOrder(data) {
  return request({
    url: '/business/tzCollectionOrder/add',
    method: 'post',
    data: data
  })
}

// 修改催款订单信息
export function updateOrder(data) {
  return request({
    url: '/system/order',
    method: 'put',
    data: data
  })
}

// 删除催款订单信息
export function delOrder(id) {
  return request({
    url: '/system/order/' + id,
    method: 'delete'
  })
}

// 新增催款订单信息
export function update(data) {
  return request({
    url: '/business/tzCollectionOrder/update',
    method: 'post',
    data: data
  })
}

// 修改审核人
export function bindUser(data) {
  return request({
    url: '/business/tzCollectionOrder/bindUser',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: data
  })
}
export function collectionStatus(data) {
  return request({
    url: '/business/tzCollectionOrder/collectionStatus',
    method: 'post',
    params: data
  })
}


export function updateStatus(data) {
  return request({
    url: '/business/tzCollectionOrder/updateStatus',
    method: 'post',
    params: data
  })
}